package com.mcptt.config.model;

public class ConferenceInfo {
    private static final String Name_Connect = "connected";
    private String name = null;
    private boolean isConnect = false;

    public ConferenceInfo(String name,String connectStr)
    {
        this.name = name;
        if(connectStr != null
                && Name_Connect.equals(connectStr))
        {
            isConnect = true;
        }
        else
        {
            isConnect = false;
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String toString()
    {
        StringBuffer strBuf = new StringBuffer("ConferenceInfo ");
        strBuf.append("name = ").append(name).append(",");
        strBuf.append("isConnect = ").append(isConnect).append(",");

        return strBuf.toString();
    }
}
